<template>
	<view class="uni_box home">
		<navbar title='绑定银行卡'>
		</navbar>
		<view class="content">
			<view class="tione">
				<text class="tiname">真实姓名</text>
				<view class="shuview">
					<u-input v-model="bank.name" type="text" :border="false" placeholder="请输入"/>
				</view>
				<text class="tiname">身份证号</text>
				<view class="shuview">
					<u-input v-model="bank.id_number" type="text" :border="false" placeholder="请输入"/>
				</view>
				<text class="tiname">银行卡号</text>
				<view class="shuview">
					<u-input v-model="bank.bank_number" type="text" :border="false" placeholder="请输入"/>
				</view>
				<text class="tiname">银行卡网点</text>
				<view class="shuview">
					<u-input v-model="bank.bank_network" type="text" :border="false" placeholder="请输入"/>
				</view>
				<view class="tijiao" @click="gettijiao">提交</view>
			</view>

			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value:'',
				bank:{}
			}
		},
		onLoad() {
			this.gethuixian();
		},
		onShow() {
		},
		methods: {
			async gethuixian(){
				let res = await this.$u.api.userbank({
				});
				this.bank = res.bank
			},
			getbang(){
				this.navrouter("/pages/TPage/Bangka");
			},
			async gettijiao(){
				let res = await this.$u.api.userbankpost(this.bank);
				this.$u.toast("操作成功");
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #F5F5F5;
	}
	.content{
		background-color: #F5F5F5;
		min-height: 100vh;
		padding-bottom: 100rpx;
		.tione{
			margin: 20rpx 30rpx;
			background: #FFFFFF;
			border-radius: 20rpx;
			padding: 30rpx;
			.tiname{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 32rpx;
				color: #51565D;
				display: block;
				margin-bottom: 20rpx;
			}
			.shuview{
				display: flex;
				flex-direction: row;
				align-items: center;
				padding: 20rpx 30rpx;
				background: #F5F5F5;
				border-radius: 20rpx;
				border: 1px solid #CCCCCC;
				margin-bottom: 30rpx;
				.qian{
					margin-left: 15rpx;
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 34rpx;
					color: #333333;
					margin-right: 15rpx;
					display: inline-block;
				}
				.qbu{
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 34rpx;
					color: #496EE7;
					margin-left: auto;
				}
				.chakan{
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #999;
					margin-left: 15rpx;
				}
			}
			.tijiao{
				display: flex;
				align-items: center;
				justify-content: center;
				height: 98rpx;
				background: #3E65E5;
				border-radius: 20rpx;
				margin: 60rpx 0 40rpx;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 32rpx;
				color: #FFFFFF;
			}
			.wenxin{
				display: flex;
				flex-direction: column;
				.wtit{
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 26rpx;
					color: #333333;
					display: block;
					margin-bottom: 10rpx;
				}
				.wmiao{
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 26rpx;
					color: #666666;
				}
			}
		}
		
		.keti{
			font-family: DINPro;
			font-weight: 500;
			font-size: 28rpx;
			color: #999999;
			display: block;
			margin: 0rpx 0 20rpx;
		}
	}
	.tijilu{
			margin-top: 50rpx;
			padding:0 30rpx;
			.jitit{
				display: block;
				margin-bottom: 30rpx;
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 30rpx;
				color: #333333;
			}
			.jilist{
				
				.jiitem{
					background: #FFFFFF;
					border-radius: 10rpx;
					padding:20rpx 30rpx;
					display: flex;
					flex-direction: column;
					margin-bottom: 20rpx;
					.jione{
						display: flex;
						flex-direction: row;
						align-items: center;
						.tiname{
							font-family: PingFang SC;
							font-weight: 500;
							font-size: 28rpx;
							color: #333333;
						}
						.tijia{
							margin-left: auto;
							font-family: PingFang SC;
							font-weight: bold;
							font-size: 36rpx;
							color: #333333;
						}
					

					}
					.titime{
						font-family: PingFang SC;
						font-weight: 400;
						font-size: 22rpx;
						color: #999999;
					}
					.jitwo{
						display: flex;
						flex-direction: row;
						justify-content: space-between;
					}
				}
			}
		}
</style>
